package structureType.bridge.CarAndRoadAndPerson;

public class Car {
	private String type;
	private String speed;
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getSpeed() {
		return speed;
	}
	public void setSpeed(String speed) {
		this.speed = speed;
	}
	public String toString(){
		return "Car";
	}
	
	public void run(){
		System.out.println("Running");
	}
	public void on(String str){
		System.out.println("on the" + str);
	}
}
